<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/jirui/bigdata/big_data_inventory.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/jirui/bigdata/big_data_inventory.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'big_data_inventory_id',
                footer: "Foots",
                cnName: '大数据DMS库存表',
                name: 'bigdata/big_data_inventory',
                url: "/big_data_inventory/",
                sortName: "big_data_inventory_id"
            });
            const editFormFields = ref({});
            const editFormOptions = ref([]);
            const searchFormFields = ref({});
            const searchFormOptions = ref([]);
            const columns = ref([{field:'big_data_inventory_id',title:'DMS库存表id',type:'guid',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'vin',title:'车辆VIN',type:'string',width:220,align:'left',sort:true},
                       {field:'wide_type',title:'本部/在途/终端/未发',type:'string',width:220,align:'left'},
                       {field:'is_move_stock',title:'是否移库:1是,0否',type:'int',width:110,require:true,align:'left'},
                       {field:'stock_location',title:'库存地点',type:'string',width:220,align:'left'},
                       {field:'first_dept_name',title:'战区',type:'string',width:220,align:'left'},
                       {field:'storage_bin',title:'库位',type:'string',width:220,align:'left'},
                       {field:'customer_code',title:'经销商编码',type:'string',width:220,align:'left'},
                       {field:'customer_name',title:'经销商名称',type:'string',width:220,align:'left'},
                       {field:'shipping_method',title:'在途车辆发运方式 1 空运 2 水运 3 人工驾送 4 自提 5 公路 6 公铁联运 7 水陆联运 8 铁路 9 板车',type:'string',width:220,align:'left'},
                       {field:'CREATE_DATE',title:'签收日期',type:'datetime',width:150,align:'left',sort:true},
                       {field:'SAP_VOUCHER_TIME',title:'发车日期',type:'datetime',width:150,align:'left',sort:true},
                       {field:'on_transit_days',title:'在途天数',type:'int',width:110,align:'left'},
                       {field:'Creator',title:'创建人',type:'string',width:100,align:'left'},
                       {field:'CreateDate',title:'创建时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'Modifier',title:'修改人',type:'string',width:100,align:'left'},
                       {field:'ModifyDate',title:'修改时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'status',title:'推送状态，0:未推送，1:已推送',type:'int',width:110,require:true,align:'left'}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
